package com.ml.mall.bean.req.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by kyyang on 2021/1/20 21:34
 */
@Data
public class SysRoleNewDto  {

    @NotBlank(message = "角色名称不能为空")
    @ApiModelProperty("角色名")
    private String name;

    @NotBlank(message = "角色描述不能为空")
    @ApiModelProperty("角色描述")
    private String description;

    @NotNull(message = "角色类型不可为空")
    @ApiModelProperty("角色类型")
    private Integer roleType;

    @ApiModelProperty("角色权限")
    private List<Integer> permissionIds;
}
